package com.lsmw.management.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/*
 *ClassName:LsRoomImg
 *UserName:二号男嘉宾
 *CreateTime:2021/4/22 16:59
 */
@Data
public class LsRoomImg {

    /**
     * 图片id 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long imgId;

    /**
     * 图片URL
     */
    private String img;

    /**
     * 房间ID，外键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roomId;

    /**
     * 字段创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 字段最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer isDeleted;

}
